package structuralModel.bridgeMode1;

public class Client {
    public static void main(String[] args){

        System.out.println("===============电脑===========");
        ComputerImpl appleComputer = new ComputerImpl(new AppleBrand());
        appleComputer.info();

        new ComputerImpl(new HuaWeiBrand()).info();
        new ComputerImpl(new DellBrand()).info();
        new ComputerImpl(new XiaoMiBrand()).info();
        new ComputerImpl(new VivoBrand()).info();

        System.out.println("===================服务器===============");
        new ServerImpl(new AppleBrand()).info();
        new ServerImpl(new HuaWeiBrand()).info();
        new ServerImpl(new DellBrand()).info();
        new ServerImpl(new XiaoMiBrand()).info();
        new ServerImpl(new VivoBrand()).info();

        System.out.println("===================手机===============");
        new PhoneImpl(new AppleBrand()).info();
        new PhoneImpl(new HuaWeiBrand()).info();
        new PhoneImpl(new DellBrand()).info();
        new PhoneImpl(new XiaoMiBrand()).info();
        new PhoneImpl(new VivoBrand()).info();


    }
}
